package mvc.views
{
	import alternativa.gui.alternativagui;
	import alternativa.gui.keyboard.IKeyFilter;
	import alternativa.gui.keyboard.IKeyboardListener;
	import alternativa.gui.keyboard.KeyFiltersConfig;
	import alternativa.gui.keyboard.KeyboardManager;
	import alternativa.gui.theme.defaulttheme.controls.text.TextInput;
	
	import flash.display.Sprite;
	import flash.events.KeyboardEvent;
	import flash.ui.Keyboard;
	
	import mvc.Notifications;
	import mvc.views.layers.BackgroundLayer;
	import mvc.views.layers.UILayer;
	
	import org.puremvc.as3.patterns.facade.Facade;
	
	use namespace alternativagui;
	
	/**
	 * 主面板
	 * @author XiLing
	 */
	public class AppMainView extends Sprite
	{
		public var guiObjectLayer:Sprite= new Sprite();
		public var guiMouseHintLayer:Sprite= new Sprite();

		//背景层
		public var backgroundLayer:BackgroundLayer=null;
		//物件层
		public var uiLayer:UILayer=null;
		
		public function AppMainView()
		{
			super();			
		}
		
		public function init():void
		{
			guiObjectLayer.mouseEnabled = false;
			guiObjectLayer.tabEnabled = false;
			addChild(guiObjectLayer);

			guiMouseHintLayer.mouseChildren = guiMouseHintLayer.mouseEnabled = false;
			guiMouseHintLayer.tabEnabled = false;
			addChild(guiMouseHintLayer);
			
			backgroundLayer = new BackgroundLayer();
			guiObjectLayer.addChild(backgroundLayer);
			
			uiLayer = new UILayer();
			uiLayer.mouseEnabled=false;
			uiLayer.tabEnabled=false;
			guiObjectLayer.addChild(uiLayer);
			

		}
	}
}